package com.hn.gege.core.validdator;


import cn.hutool.core.util.IdcardUtil;

import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;


/**
 * 自定义身份证校验注解实现
 * @author dnkj011
 *
 */
public class IdNoValidator implements ConstraintValidator<IsIdNo,String> {

	@Override
	public boolean isValid(String arg0, ConstraintValidatorContext arg1) {
		return IdcardUtil.isValidCard(arg0);
	}

}
